<%--
  Created by IntelliJ IDEA.
  User: lijincheng
  Date: 2020/7/14
  Time: 7:05 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/views/common/head.jsp"%>
<div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>用户管理页面 >> 用户修改页面</span>
        </div>
        <div class="providerAdd">
            <form id="userForm" name="userForm" method="post" action="/user/doModify" enctype="multipart/form-data">
                <input type="hidden" name="id" value="11"/>
                <div>
                    <label for="userName">用户编码：</label>
                    <input type="text" value="${userInfo.get("userCode")}" readonly="readonly">
                </div>
                <div>
                    <label for="userName">用户名称：</label>
                    <input type="text" name="userName" id="userName" value="${userInfo.get("userName")}">
                    <font color="red"></font>
                </div>
                <div>
                    <label >用户性别：</label>
                    <select name="gender" id="gender">

                        <c:choose>
                            <c:when test="${userInfo.gender == 1 }">
                                <option value="1" selected="selected">男</option>
                                <option value="2">女</option>
                            </c:when>
                            <c:otherwise>
                                <option value="1">男</option>
                                <option value="2" selected="selected">女</option>
                            </c:otherwise>
                        </c:choose>

                    </select>
                </div>
                <div>
                    <label for="data">出生日期：</label>
                    <input type="text" Class="Wdate" id="birthdays" name="birthdays" value="<fmt:formatDate value="${userInfo.birthday }" pattern="yyyy-MM-dd"/>"
                           readonly="readonly" onclick="WdatePicker();">
                    <font color="red"></font>
                </div>

                <div>
                    <label for="userphone">用户电话：</label>
                    <input type="text" name="phone" id="phone" value="${userInfo.get("phone")}">
                    <font color="red"></font>
                </div>
                <div>
                    <label for="userAddress">用户地址：</label>
                    <input type="text" name="address" id="address" value="${userInfo.get("address")}">
                </div>
                <div>
                    <label >用户角色：</label>
                    <!-- 列出所有的角色分类 -->
                    <input type="hidden" value="3" id="rid" />
                    <select name="userRole" id="userRole"></select>
                    <font color="red"></font>
                </div>
                <div>
                    <label for="m_idPicPath">证件照：</label>
                    <input type="hidden" id="errorinfo" value=""/>
                    <input type="file" name="attachs" id="m_idPicPath"/>
                    <font color="red"></font>

                </div>
                <div>
                    <label for="m_workPicPath">工作证照片：</label>

                    <input type="hidden" id="errorinfo_wp" value=""/>
                    <input type="file" name="attachs" id="m_workPicPath"/>
                    <font color="red"></font>



                </div>
                <div class="providerAddBtn">
                    <input type="submit" name="save" id="save" value="保存" />
                    <input type="button" id="back" name="back" value="返回"/>
                </div>
            </form>
        </div>
    </div>
</section>


<footer class="footer">
    千峰科技
</footer>
<script type="text/javascript" src="/statics/js/time.js"></script>
<script type="text/javascript" src="/statics/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/statics/js/common.js"></script>
<script type="text/javascript" src="/statics/calendar/WdatePicker.js"></script>
</body>
</html>
<script type="text/javascript" src="/statics/js/usermodify.js"></script>

